package acm2;

class TheDrunkJailer4
{
	public static void main(String[] args)
	{
		for(int i=0;i>-1;i=1)
		{
			i*=(int)Math.sqrt(new java.util.Scanner(System.in).nextInt());
			if(i>1)System.out.println(i);
		}
	}
}
